package com.ruoyi.APPMS.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.APPMS.domain.Salepartorder;
import com.ruoyi.APPMS.mapper.SalepartorderMapper;
import com.ruoyi.APPMS.service.ISalepartorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 部件销售订单Service业务层处理
 *
 * @author 谢雨琦
 * @date 2023-07-04
 */
@Service
public class SalepartorderServiceImpl extends ServiceImpl<SalepartorderMapper, Salepartorder> implements ISalepartorderService {
    @Autowired
    private SalepartorderMapper salepartorderMapper;
    @Override
    public List<Salepartorder> list(Salepartorder salepartorder) {
        return salepartorderMapper.list(salepartorder);
    }

    @Override
    public boolean edit(Salepartorder salepartorder) {
        return (salepartorderMapper.edit(salepartorder)>0);
    }

    @Override
    public boolean edit2(Salepartorder salepartorder) {
        return (salepartorderMapper.edit2(salepartorder)>0);
    }

    @Override
    public boolean edit3(Salepartorder salepartorder) {
        return (salepartorderMapper.edit3(salepartorder)>0);
    }
}
